/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;

import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 课程学生信息Entity 课程学生信息
 * @author admin
 * @version 2020-09-25 23:37:51
 */
@TableName(value = "t_course_student")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class CourseStudent extends IdEntity<CourseStudent> {

	private static final long serialVersionUID = 1L;
	/** F_COURSEID course_id  :  课程编号 */
	public static final String F_COURSEID = "courseId";
	/** F_STUDENTID student_id  :  学生编号 */
	public static final String F_STUDENTID = "studentId";
	/** F_USERNAME username  :  用户名(学号) */
	public static final String F_USERNAME = "username";
	/** F_NICKNAME nickname  :  昵称(姓名) */
	public static final String F_NICKNAME = "nickname";


	/** courseId 课程编号 */@NotBlank @Size(max=50)
	@TableField("course_id")
	private String courseId;
	/** studentId 学生编号 */@NotBlank @Size(max=50)
	@TableField("student_id")
	private String studentId;
	/** username 用户名(学号) */@NotBlank @Size(max=64)

	private String username;
	/** nickname 昵称(姓名) */@Size(max=64)

	private String nickname;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
